﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface ICustomerService
    {
        /// <summary>
        /// 获取客户列表基础数据
        /// </summary>
        /// <returns></returns>
        Task<List<CustomerResponse>> GetBasicCustomer();
        /// <summary>
        /// 获取客户列表
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<CustomerResponse>> Query(PageRequest<CustomerRequest> request);
        /// <summary>
        /// 获取id的客户详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CustomerResponse> Detail(long id);
        /// <summary>
        /// 客户保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(CustomerSaveRequest request);
    }
}
